package com.hub.realtime.common.utils;

public class RequireUtil {
    public static void require(boolean requirement) {
        if (!requirement) {
            throw new IllegalArgumentException("requirement failed");
        }
    }

    public static void require(boolean requirement, String message) {
        if (!requirement) {
            throw new IllegalArgumentException("requirement failed: " + message);
        }
    }
}
